/*    */ package com.zimbra.qa.unittest.prov.ldap;
/*    */ 
/*    */ import com.zimbra.cs.account.ldap.LdapProv;
/*    */ import com.zimbra.cs.account.ldap.upgrade.LdapUpgrade;
/*    */ import com.zimbra.cs.account.ldap.upgrade.UpgradeTask;
/*    */ import org.junit.BeforeClass;
/*    */ import org.junit.Test;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class TestLdapUpgrade
/*    */   extends LdapTest
/*    */ {
/*    */   private static LdapProv prov;
/*    */   
/*    */   @BeforeClass
/*    */   public static void init()
/*    */     throws Exception
/*    */   {
/* 33 */     prov = LdapProv.getInst();
/*    */   }
/*    */   
/*    */   private String[] getArgs(String bug) {
/* 37 */     return new String[] { "-b", bug };
/*    */   }
/*    */   
/*    */   @Test
/*    */   public void runAllUpgradeTasks() throws Exception
/*    */   {
/* 43 */     for (UpgradeTask task : ) {
/* 44 */       String bug = task.getBug();
/*    */       String[] args;
/*    */       String[] args;
/* 47 */       if ("27075".equals(bug)) {
/* 48 */         args = new String[] { "-b", "27075", "5.0.12" };
/*    */       } else {
/* 50 */         args = getArgs(bug);
/*    */       }
/*    */       
/* 53 */       LdapUpgrade.upgrade(args);
/*    */     }
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/qa/unittest/prov/ldap/TestLdapUpgrade.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */